package page.pc.functionDetailPage;

import basicTool.WaitTool;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedConditions;
import page.pc.AbstractPCPage;

/**
 * Created by lomo on 2017/3/21.
 */
public class ErrorToastPage extends AbstractPCPage {

    @FindBy(css = "#idnum+.due-input-error")
    private WebElement errorToastLabel;

    public ErrorToastPage(WebDriver driver) {
        super(driver);
        WaitTool.waitFor(driver, ExpectedConditions.visibilityOf(errorToastLabel), 60);
    }
}
